<?php
/**
 * Created by PhpStorm.
 * User: zhangjian37
 * Date: 2016/12/27
 * Time: 17:49
 */

$type = $_GET['type'];
$username = $_GET['username'];
$password = $_GET['password'];

if($type==0){
    echo '登录成功了--'.$username."--".$password.'<br>';
    echo '3秒后回到主页<br>';

    //调整到主页
    echo "<script type=text/javascript>";
    echo "setTimeout(function(){window.open('../html/jufuli.html','_self');}, 3000);";
    echo "</script>";
}else{
    echo '注册成功了--'.$username."--".$password.'<br>';
    echo '3秒后回到主页<br>';
    //调整到主页
    echo "<script type=text/javascript>";
    echo "setTimeout(function(){window.open('../html/jufuli.html','_self');}, 3000);";
    echo "</script>";
}
